<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <title>自定义MVC</title>
        <style>
            div{
                padding: 10px 10px 0 10px;
            }
        </style>
    </head>
    <body>
        <div>
            <h3>自定义MVC</h3>
            <c:if test="${not empty power}">
                <h3 style="color: red">${power}</h3>
            </c:if>
            <fieldset>
                <p>测试: 自定义MVC GET </p>
                <a href="/demo/getUser?name=zhangsan&age=12" >提交GET请求  无用户</a><br/>
                <a href="/demo/getUser?username=lucy&name=zhangsan&age=12" >提交GET请求  lucy</a><br/>
                <a href="/demo/getUser?username=zhangsan&name=zhangsan&age=12" >提交GET请求  zhangsan</a>
            </fieldset>
            <fieldset>
                <p>测试: 自定义MVC POST </p>
                <form method="post" action="/demo/getNewUser?username=tom">
                    <input type="text" name="user.name" value="lisi"/>
                    <input type="text" name="user.age" value="22"/>
                    <input type="submit" value="提交POST请求 tom"/>
                </form>
            </fieldset>
        </div>
    </body>
</html>
